::0
::15
::G:\software\wjedu.bat
::

@echo off
choice /t 0 /d y /n >nul

ver | find "5.1." >nul &&  goto run   @xp
ver | find "6.1." >nul &&  goto run   @win7
ver | find "10.0." >nul &&  goto run   @win10
goto run

:end
exit

:run
REM //隐藏窗口运行
function start-hiddenproc {
    [CmdletBinding()]
    param(
    [string]$processname = './wjedu.bat'
    )
 
    $startclass = Get-CimClass -ClassName Win32_ProcessStartup
    $startinfo = New-CimInstance -CimClass $startclass -Property @{ShowWindow = 0} -ClientOnly
 
    $class = Get-CimClass -ClassName Win32_Process
    Invoke-CimMethod -CimClass $class -MethodName Create -Arguments @{
    Commandline = $processname;
    ProcessStartupInformation = [CimInstance]$startinfo
    }
}
REM //直接运行 
REM start ./wjedu.bat 

exit
